package com.zbdx.medicalzb.mapper;

import com.zbdx.medicalzb.entity.DrugEntity;
import com.zbdx.medicalzb.model.DrugModel;
import com.zbdx.medicalzb.param.DrugParam;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DrugMapper {

    List<DrugModel> getAllDrug(String name);

    int saveDrug(DrugParam drugParam);

    int insertSalePlace(Long drugId, Long[] saleIds);

    int updateDrugById(DrugEntity drugEntity);

    int deleteDrugById(Long drugId);

    int deleteSaleByDrugId(Long drugId);
}
